//统一管理项目用户接口
import request from '@/utils/request'
import { loginForm, loginResposeDate, userResposeDate } from './type'
//统一管理接口
enum API {
  LOGIN_URL = 'user/login',
  USERINFO_URL = 'user/info',
}
//登录用户接口
export const reqLogin = (data: loginForm) =>
  request.post<any, loginResposeDate>(API.LOGIN_URL, data)
//获取用户信息接口
export const reqUserInfo = () =>
  request.get<any, userResposeDate>(API.USERINFO_URL)
